package com.example.eurekacumsumerribbon;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
public class requestController {

    @Autowired
    RestTemplate restTemplate;
    @GetMapping("doRequest")
    public String doRequest(){
        return restTemplate.getForObject("http://eureka-client/test",String.class);
    }
}
